﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.PersistenceModel.NHibernate.Specifications;
using YasharEl.Infrastructure.Core.Personification;
using YasharEl.Infrastructure.TaskEngine.PersistenceModel.Specifications;

namespace YasharEl.Infrastructure.TaskEngine.PersistenceModel.NHibernate.Specifications
{
    public class TaskParticipantQueryOverSpecification : QueryOverSpecification<ITaskParticipant, long>, ITaskParticipantSpecification
    {
        public ITaskParticipantSpecification WithIdentityNumber(IsraelIdentityNumber identityNumber)
        {
            QueryOver.Where(x => x.UserIdentityId == identityNumber);
            return this;
        }
    }
}
